package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class GetItemInformationList {

    private int beginIndex;
    private int endIndex;
    private List<GetItemInformation> getItemInformationList;

    public GetItemInformationList(List<GetItemInformation> getItemInformationList) {
        this.beginIndex = getItemInformationList.get(0).getBeginIndex();
        this.endIndex = getItemInformationList.get(getItemInformationList.size() - 1).getEndIndex();
        this.getItemInformationList = getItemInformationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return getItemInformationList.size();
    }

    public GetItemInformation get(int index) {
        return getItemInformationList.get(index);
    }
    
}
